import { getValue } from "../config/RedisConfig";

const checkCode = async (key, value) => {
  const redisData = await getValue(key)
  if (redisData != null) {
    if (redisData.toLowerCase() === value.toLowerCase()) {
      return true
    }
    return false
  } else {
    return false
  }
};
export {
  checkCode
}
